package com.foruo.code.entity;

/**
 * 数据库字段模型
 * @author GaoYuan
 * @datetime 2018/3/19 上午11:02
 */
public class ColumnModel {

    /** 数据库列名 */
    private String dbColumnName;
    /** 列名 */
    private String columnName;
    /** 类型 */
    private String columnType;
    /** 描述 */
    private String columnDesc;
    /** 是否可以为空 */
    private String isNull;
    /** 键值 */
    private String key;
    /** 自定义类别 */
    private String customType;

    /** 输入框 */
    public static final String CUSTOM_TYPE_INPUT = "1";
    /** 日期框 */
    public static final String CUSTOM_TYPE_DATE = "2";
    /** 下拉框之 是否 */
    public static final String CUSTOM_TYPE_YN = "3";
    /** 数字框 */
    public static final String CUSTOM_TYPE_NUMBER = "4";

    public String getDbColumnName() {
        return dbColumnName;
    }

    public void setDbColumnName(String dbColumnName) {
        this.dbColumnName = dbColumnName;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }

    public String getColumnDesc() {
        return columnDesc;
    }

    public void setColumnDesc(String columnDesc) {
        this.columnDesc = columnDesc;
    }

    public String getIsNull() {
        return isNull;
    }

    public void setIsNull(String isNull) {
        this.isNull = isNull;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getCustomType() {
        return customType;
    }

    public void setCustomType(String customType) {
        this.customType = customType;
    }

    @Override
    public String toString() {
        return "ColumnModel{" +
                "dbColumnName='" + dbColumnName + '\'' +
                ", columnName='" + columnName + '\'' +
                ", columnType='" + columnType + '\'' +
                ", columnDesc='" + columnDesc + '\'' +
                ", isNull='" + isNull + '\'' +
                ", key='" + key + '\'' +
                ", customType='" + customType + '\'' +
                '}';
    }
}
